package com.informatics.polymer.client.propertysearch;

import com.smartgwt.client.widgets.grid.ListGridRecord;
/**
 * Class to create a custom list grid record to contain information on property
 * search criteria.
 * @author ed
 * @version 1.0
 */
public class PropertySearchDataRecord extends ListGridRecord {
	/**
	 * Property to search for.
	 */
	private String property;
	/**
	 * Maximum value for a given property in the search.
	 */
	private double maximum;
	/**
	 * Minimum value for a given property in the search.
	 */
	private double minimum;
	/**
	 * Creates a PropertySearchDataRecord.
	 * @param propertyName - the name of the property selected.
	 * @param maxValue - maximum value to search for, for this property.
	 * @param minValue - minimum value to search for, for this property.
	 */
	public PropertySearchDataRecord(final String propertyName, final double maxValue, final double minValue){
		this.property = propertyName;
		this.maximum = maxValue;
		this.minimum = minValue;
	}
	/**
	 * 
	 * @return String value representing the search property name.
	 */
	public String getProperty(){
		return property;
	}
	/**
	 * 
	 * @return double value representing the maximum value of the search property.
	 */
	public double getMaxValue(){
		return maximum;
	}
	/**
	 * 
	 * @return double value representing the minimum value of the search property.
	 */
	public double getMinValue(){
		return minimum;
	}
}
